package com.wzg.jetpack_blackbox.login.room.Converter;

import androidx.room.TypeConverter;

import com.blankj.utilcode.util.GsonUtils;
import com.wzg.jetpack_blackbox.login.room.UserWork;

public class UserWorkConverter {


    @TypeConverter
    public UserWork serialize(String value) {
        return GsonUtils.fromJson(value, UserWork.class);
    }


    @TypeConverter
    public String deserialization(UserWork userWork) {
        return GsonUtils.toJson(userWork);
    }


}
